import { createApp } from 'vue'
import App from './App.vue'
// 引入路由
import router from './router'
// 引入vuex
import store from './store'
import '@/styles/index.less'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import GlobalsCompoent from './components'

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router).use(store).use(ElementPlus).use(GlobalsCompoent).mount('#app')
